Katyusha's calculation